package com.ruoyi.vote.admin.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 活动 - 奖品管理业务对象 vote_prize
 *
 * @author 筑巢
 * @date 2023-07-17
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class VotePrizeBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 奖品名
     */
    @NotBlank(message = "奖品名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 价值
     */
    @NotNull(message = "价值不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal price;

    /**
     * 奖品logo
     */
    @NotBlank(message = "奖品logo不能为空", groups = { AddGroup.class, EditGroup.class })
    private String logo;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 投票时间(定时同步时间)
     */
    private Date ticketTime;


}
